/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmCadastroDependente.java
 *
 * Created on 23/09/2009, 10:46:22
 */

package entidade.telas;

import convenios.telas.*;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.UIManager;

/**
 *
 * @author giselia
 */
public class FrmCadastroEntidade extends javax.swing.JFrame {

    /** Creates new form FrmCadastroDependente */
    public FrmCadastroEntidade() {
        initComponents();
         URL url = this.getClass().getResource("/imagens/logo_mini.png");
        Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);
        this.setIconImage(imagemTitulo);
        this.setLocationRelativeTo(null);
        try{
            UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
        }catch (Exception e){
        }
        this.setVisible(true);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        SalvarjButton4 = new javax.swing.JButton();
        FecharjButton1 = new javax.swing.JButton();
        NomeConveniojTextField1 = new javax.swing.JTextField();
        CNPJjFormattedTextField1 = new javax.swing.JFormattedTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        CEPjFormattedTextField1 = new javax.swing.JFormattedTextField();
        jButton4 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        TipoLogradourojComboBox1 = new javax.swing.JComboBox();
        LogradourojTextField2 = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        NumjTextField3 = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        EstadojComboBox3 = new javax.swing.JComboBox();
        jLabel13 = new javax.swing.JLabel();
        CidadejTextField2 = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        BairrojTextField2 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        ComplementojTextField2 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        EmailjTextField2 = new javax.swing.JTextField();
        ResidencialjFormattedTextField1 = new javax.swing.JFormattedTextField();
        jLabel16 = new javax.swing.JLabel();
        NomeMaejTextField2 = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Cadastro de Entidade");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        SalvarjButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/tick.png"))); // NOI18N
        SalvarjButton4.setText("Salvar");
        SalvarjButton4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jPanel2.add(SalvarjButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 8, -1, -1));

        FecharjButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cross.png"))); // NOI18N
        FecharjButton1.setText("Fechar");
        FecharjButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fecharEntidade(evt);
            }
        });
        jPanel2.add(FecharjButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 8, -1, -1));

        jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, 590, 40));

        NomeConveniojTextField1.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel1.add(NomeConveniojTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, 400, -1));

        try {
            CNPJjFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##.###.###/####-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        CNPJjFormattedTextField1.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel1.add(CNPJjFormattedTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 30, 180, -1));

        jLabel1.setText("Razão Social");
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 16, -1, -1));

        jLabel11.setText("Nº CNPJ");
        jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 16, -1, -1));

        jLabel3.setText("CEP");
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 57, -1, -1));
        jPanel1.add(CEPjFormattedTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 73, 70, -1));

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/magnifier.png"))); // NOI18N
        jPanel1.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 73, 20, 20));

        jLabel4.setText("Tipo Logradouro");
        jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 57, -1, -1));

        TipoLogradourojComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione", "Alameda", "Avenida", "Beco$", "Estrada", "Jardim", "Largo", "Loteamento", "Parque", "Praça", "Praia", "Rodovia", "Rua", "Servidão", "Travessa", "Trevo", "Via", "Vila" }));
        jPanel1.add(TipoLogradourojComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 73, 80, -1));
        jPanel1.add(LogradourojTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 73, 340, -1));

        jLabel5.setText("Logradouro");
        jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 57, -1, -1));

        NumjTextField3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NumjTextField3ActionPerformed(evt);
            }
        });
        jPanel1.add(NumjTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 73, 50, -1));

        jLabel6.setText("Número");
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 57, -1, -1));

        EstadojComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione", "RS", "SC", "PR", "SP", "RJ", "ES", "MG", "MT", "MTS", "BH" }));
        jPanel1.add(EstadojComboBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 112, 60, -1));

        jLabel13.setText("Estado");
        jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 96, -1, -1));
        jPanel1.add(CidadejTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 112, 170, -1));

        jLabel9.setText("Cidade");
        jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 96, -1, -1));
        jPanel1.add(BairrojTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 112, 170, -1));

        jLabel7.setText("Bairro");
        jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 96, -1, -1));
        jPanel1.add(ComplementojTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 112, 160, -1));

        jLabel15.setText("Complemento");
        jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 96, -1, -1));

        jLabel12.setText("E-mail");
        jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 140, -1, -1));
        jPanel1.add(EmailjTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 156, 230, -1));
        jPanel1.add(ResidencialjFormattedTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 156, 90, -1));

        jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/telephone.png"))); // NOI18N
        jLabel16.setText("Recado");
        jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));
        jPanel1.add(NomeMaejTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 156, 250, -1));

        jLabel17.setText("Nome Responsável");
        jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 140, -1, -1));

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 610, 240));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void NumjTextField3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NumjTextField3ActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_NumjTextField3ActionPerformed

    private void fecharEntidade(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fecharEntidade
        this.dispose();
    }//GEN-LAST:event_fecharEntidade

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField BairrojTextField2;
    private javax.swing.JFormattedTextField CEPjFormattedTextField1;
    private javax.swing.JFormattedTextField CNPJjFormattedTextField1;
    private javax.swing.JTextField CidadejTextField2;
    private javax.swing.JTextField ComplementojTextField2;
    private javax.swing.JTextField EmailjTextField2;
    private javax.swing.JComboBox EstadojComboBox3;
    private javax.swing.JButton FecharjButton1;
    private javax.swing.JTextField LogradourojTextField2;
    private javax.swing.JTextField NomeConveniojTextField1;
    private javax.swing.JTextField NomeMaejTextField2;
    private javax.swing.JTextField NumjTextField3;
    private javax.swing.JFormattedTextField ResidencialjFormattedTextField1;
    private javax.swing.JButton SalvarjButton4;
    private javax.swing.JComboBox TipoLogradourojComboBox1;
    private javax.swing.JButton jButton4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration//GEN-END:variables

}
